﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlBaoCaoDuyetDSThamGiaHoiNghiKinhDoanhToanQuoc.ascx.cs" Inherits="WebUserControl_ControlBaoCaoDuyetDSThamGiaHoiNghiKinhDoanhToanQuoc" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.2" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
<%@ Register assembly="DevExpress.Web.ASPxTreeList.v9.2.Export" namespace="DevExpress.Web.ASPxTreeList.Export" tagprefix="dxwtl" %>
<%@ Register assembly="DevExpress.Web.ASPxTreeList.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTreeList" tagprefix="dxwtl" %>

<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />

<script type="text/javascript">
     function pageLoad() {
       $("#<%= btXem.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff'
        } }); 
        }); 
        $("#<%= btPrint.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff'
        } }); 
         setTimeout($.unblockUI, 5000); 
        }); 
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script> 

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers><asp:PostBackTrigger ControlID="btPrint" /></Triggers>
    <ContentTemplate>
       <fieldset>
    <legend>Báo cáo duyệt danh sách tham gia hội nghị kinh doanh toàn quốc</legend>
    <div class="fm-req">
      <label for="DropThang">Chọn tháng:</label>
        <asp:DropDownList ID="DropThang" runat="server">
        </asp:DropDownList>
        
      </div>
      </fieldset>
      <div>
      <asp:Button ID="btXem" runat="server" onclick="btXem_Click" Text="Xem" />
      <asp:Button ID="btPrint" runat="server" onclick="btPrint_Click" Text="Xuất Excel" />
      </div>
      <br />
       <dxwtl:ASPxTreeList ID="ASPxTreeList1" runat="server"
             KeyFieldName="Mã Số" 
            ParentFieldName="CapTren" AutoGenerateColumns="true" 
            onhtmlrowprepared="ASPxTreeList1_HtmlRowPrepared">
            <Columns>
                <dxwtl:TreeListTextColumn Caption="Mã BA" FieldName="Mã Số" 
                    VisibleIndex="0">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn Caption="Tên BA" FieldName="Tên BA" 
                    VisibleIndex="1">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn Caption="Cấp Bậc" FieldName="Cấp Bậc" 
                    VisibleIndex="2">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn Caption="Số lượng tuyển mới" FieldName="SốLượngTuyểnMới" 
                    VisibleIndex="3">
                </dxwtl:TreeListTextColumn>
             
                 <dxwtl:TreeListTextColumn Caption="Ngày gia nhập" FieldName="NgàyGiaNhập" 
                    VisibleIndex="5">
                </dxwtl:TreeListTextColumn>
            </Columns>
            </dxwtl:ASPxTreeList>
            <br />
       
        <dxwtl:ASPxTreeListExporter TreeListID="ASPxTreeList1" ID="ASPxTreeListExporter1" runat="server">
        </dxwtl:ASPxTreeListExporter>
        
    </ContentTemplate>
</asp:UpdatePanel>